package com.qzyh.esb.egsa.utils;

import java.util.HashMap;
import java.util.Map;

public class CollectUtil {

    public static Map<String, String> commonMap;

    static {
        commonMap = new HashMap<>();
    }

    public static void put(String key, String value) {
        commonMap.put(key, value);
    }

    public static String get(String key) {
        String value  = commonMap.get(key);
        if (value != null) {
            commonMap.remove(key);
        }
        return value;
    }

}
